<template>
	<view class="chat">
		<u-navbar :isBack="true" back-icon-color="#000" height="60">
			<view class="u-navbar-content-title">
				<view class="u-title u-line-1 center">
					官方助手
					<text class="icon">
						<u-icon name="/static/icon/橙色认证.png" size="30"></u-icon>
					</text>
				</view>
			</view>
		</u-navbar>
		<view class="content">
			<view class="comm">
				<view class="comm-item">
					<u-avatar :size="90"></u-avatar>
					<view class="rect"></view>
				</view>
			</view>
		</view>
		<view class="chat-footer">
			<view class="input">
				<u-input height="60" v-model="comm" type="text"></u-input>
			</view>
			<view class="icon">
				<image class="img" src="/static/img/表情.png"></image>
				<image class="img add" src="/static/icon/白色发布.png"></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				comm: ''
			};
		}
	}
</script>

<style lang="scss">
	.center {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.u-navbar-content-title {
		width: 100%;
		margin-right: 41px;
		color: rgb(0, 0, 0);
		font-size: 16px;
		font-weight: normal;
	}

	.icon {
		margin-left: 10upx;
	}

	.content {
		padding: 30upx;

		.comm {
			.comm-item {
				display: flex;

				.rect {
					width: 300upx;
					height: 500upx;
					background-color: $bgIndex;
					margin-left: 30upx;
					border-radius: 12upx;
					margin-top: 40upx;
				}
			}
		}
	}

	.chat-footer {
		height: 100upx;
		width: 100vw;
		background-color: #FFFFFF;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		margin: auto;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0upx 20upx;

		.input {
			background-color: rgb(235, 235, 235);
			border-radius: 15upx;
			height: 60upx;
			flex: 1;
		}

		.icon {
			display: flex;
			align-items: center;
			margin-left: 10upx;
			.img {
				width: 60upx;
				height: 60upx;
				margin-left: 20upx;
				&.add {
					width: 46upx;
					height: 46upx;
					background-color: rgb(213, 213, 213);
					border-radius: 50%;
					padding: 7upx;
				}
			}
		}
	}
</style>
